home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #2
/
Monster Media No. 2 (Monster Media)(1994).ISO
/
pcboard
/
gamble11.zip
/
SCRACK.PPE
(
.txt
)
< prev
Wrap
PCBoard Programming Language Executable
|
1994-05-04
|
7KB
|
277 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
Integer INTEGER005
Integer INTEGER006
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
;------------------------------------------------------------------------------
:LABEL001
STRING005 = "n"
Cls
PrintLn " @X4C┌─────────────────────────────────────────────────────────────────────┐@X07"
PrintLn " @X4C│ @X4ESafe Cracker @X4C│@X07"
PrintLn " @X4C│@X4E by Brian Sweeney @ The Laser BBS (914.734.7045) @X4C│@X07"
PrintLn " @X4C│@XCA UNREGISTERED EVALUATION VERSION @X4C│@X07"
PrintLn " @X4C│@X40─────────────────────────────────────────────────────────────────────@X4C│@X07"
PrintLn " @X4C│@X4F You may bet as much time as you have today. If you loose, the @X4C│@X07"
PrintLn " @X4C│@X4F amount of time you bet will be deducted from your time limit for @X4C│@X07"
PrintLn " @X4C│@X4F today. If you win, the amount you bet will be added to the time @X4C│@X07"
PrintLn " @X4C│@X4F you have remaining for THIS CALL. When you logoff, you will loose @X4C│@X07"
PrintLn " @X4C│@X4F any time you won unless you deposit it in the time bank. @X4C│@X07"
PrintLn " @X4C│@X40─────────────────────────────────────────────────────────────────────@X4C│@X07"
PrintLn " @X4C│ @X4FYou will get 11 chances to guess a number between 0000 and 9999. @X4C│@X07"
PrintLn " @X4C│ @X4FWhen you guess a number you will be told if the combination is @X4C│@X07"
PrintLn " @X4C│ @X4Fhigher or lower than your guess. If you guess the right @X4C│@X07"
PrintLn " @X4C│@X4F combination, you will win what you bet times the number of guesses @X4C│@X07"
PrintLn " @X4C│@X4F you have left. If you run out of gusses, you will be able to buy @X4C│@X07"
PrintLn " @X4C│@X4F one more for half of your bet. @X4C│@X07"
PrintLn " @X4C│@X40─────────────────────────────────────────────────────────────────────@X4C│@X07"
PrintLn " @X4C│ @X4EYou have @X4F@TIMELEFT:4@ @X4Eminutes remaining today @X4C│@X07"
PrintLn " @X4C└─────────────────────────────────────────────────────────────────────┘"
PrintLn
InputStr "How many minutes do you wish to gamble (Q)uit", INTEGER002, 14, 2, "0123456789qQ", 8
If (INTEGER002 == 0) End
If (INTEGER002 == "Q") End
If (INTEGER002 == "") Goto LABEL001
If (INTEGER002 > MinLeft()) Then
PrintLn
PrintLn
PrintLn "@X0EYou don't have that much time left!"
PrintLn
PrintLn
Wait
Goto LABEL001
Endif
If ((STRING005 == "n") && (INTEGER002 <> 30)) Goto LABEL010
INTEGER001 = Random(9998) + 1
INTEGER003 = 12
INTEGER005 = 9999
INTEGER004 = 0
INTEGER006 = 0
STRING004 = "n"
STRING003 = " "
Cls
AnsiPos 0, 5
PrintLn " @X4C┌────────────────────────────────────────────────┐@X07"
PrintLn " @X4C│ @X4ESafe Cracker @X4C│@X07"
PrintLn " @X4C│@X40────────────────────────────────────────────────@X4C│@X07"
PrintLn " @X4C│@X4F You must guess the combination to the safe. @X4C│@X07"
PrintLn " @X4C│@X4F Possible combinations are from 0000 to 9999. @X4C│@X07"
PrintLn " @X4C│@X40────────────────────────────────────────────────@X4C│@X07"
PrintLn " @X4C│@X4F Guesses Left: @X4E11 @X4FLast Guess was @X4E @X4C│@X07"
PrintLn " @X4C│@X4F Combination is between @X4E0000 @X4Fand @X4E9999 @X4C│@X07"
PrintLn " @X4C│ │@X07"
PrintLn " @X4C│ @X4BYour Guess ──> @X4C│@X07"
PrintLn " @X4C│ @X4BLast Guess ──> @X4C│@X07"
PrintLn " @X4C└────────────────────────────────────────────────┘@X07"
:LABEL002
If (INTEGER003 == 0) Goto LABEL006
AnsiPos 43, 14
Print "@X4B "
AnsiPos 44, 14
InputStr "", STRING001, 64, 4, "0123456789", 8
If (STRING001 == INTEGER001) Goto LABEL005
If (STRING001 < INTEGER001) Goto LABEL003
If (STRING001 > INTEGER001) Goto LABEL004
:LABEL003
If (STRING005 == "n") Gosub LABEL009
AnsiPos 41, 12
Color 78
Print " "
AnsiPos 41, 12
Color 78
If (STRING001 <= INTEGER004) Then
Print INTEGER004
Else
Print STRING001
Endif
AnsiPos 52, 11
Color 78
Print "Too Low! "
If (STRING001 <= INTEGER004) Then
AnsiPos 52, 11
Print "STUPID! "
Endif
INTEGER003 = INTEGER003 - 1
AnsiPos 32, 11
Color 78
Print INTEGER003, " "
AnsiPos 44, 15
Color 78
Print STRING001, " "
If (STRING001 > INTEGER004) INTEGER004 = STRING001
Goto LABEL002
:LABEL004
If (STRING005 == "n") Gosub LABEL009
AnsiPos 50, 12
Color 78
If (STRING001 >= INTEGER005) Then
Print INTEGER005
Else
Print STRING001
Endif
Print " "
AnsiPos 52, 11
Color 78
Print "Too High!"
If (STRING001 >= INTEGER005) Then
AnsiPos 52, 11
Print "STUPID! "
Endif
INTEGER003 = INTEGER003 - 1
AnsiPos 32, 11
Color 78
Print INTEGER003, " "
AnsiPos 44, 15
Color 78
Print STRING001, " "
If (STRING001 < INTEGER005) INTEGER005 = STRING001
Goto LABEL002
:LABEL005
If (STRING005 == "n") Gosub LABEL009
If (INTEGER003 == 0) INTEGER003 = 1
INTEGER002 = INTEGER002 * INTEGER003
AnsiPos 20, 18
If (STRING004 == "y") Then
PrintLn "@X0E You win 1/2 your bet (", INTEGER006, " minutes!)"
AdjTime INTEGER006
Else
PrintLn "@X0E You win ", INTEGER003, " times your bet (", INTEGER002, " minutes!)"
AdjTime INTEGER002
Endif
Goto LABEL008
:LABEL006
If (STRING005 == "n") Gosub LABEL009
If (INTEGER006 == 0) Then
INTEGER006 = INTEGER002 / 2
AnsiPos 5, 18
PrintLn "@X0EYou have run out of guesses. Would you like to purchase another"
InputYN " guess for half your bet", STRING003, 14
If ((STRING003 == "Y") || (STRING003 == "y")) Then
INTEGER003 = 1
AnsiPos 5, 18
PrintLn " "
Print " "
STRING004 = "y"
Goto LABEL002
Goto LABEL007
Endif
Goto LABEL007
Endif
:LABEL007
If (STRING005 == "n") Gosub LABEL009
AnsiPos 15, 21
If (STRING004 <> "y") PrintLn "@X0EThe number was ", INTEGER001, ". You lose ", INTEGER002, " minutes!"
If (STRING004 == "y") Then
INTEGER002 = INTEGER002 + INTEGER006
PrintLn "@X0EThe number was ", INTEGER001, ". You lose ", INTEGER002, " minutes!"
Endif
AdjTime -INTEGER002
:LABEL008
PrintLn
InputYN "Do you wish to try again", STRING002, 14
If ((STRING002 == "Y") || (STRING002 == "y")) Goto LABEL001
If ((STRING002 == "N") || (STRING002 == "n")) End
:LABEL009
AnsiPos 1, 23
Print "@X0FPausing for 5 seconds to encourage registration..."
Delay 91
AnsiPos 1, 23
Print " "
Return
:LABEL010
AnsiPos 1, 21
PrintLn "@X0FIn this unregistered version you may only bet 30 minutes each time."
Wait
Goto LABEL001
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 3 End
; 2 Cls
; 2 Wait
; 9 Color
; 28 Goto
; 18 Let
; 18 Print
; 46 PrintLn
; 28 If
; 3 AdjTime
; 2 InputStr
; 2 InputYN
; 5 Gosub
; 1 Return
; 1 Delay
; 21 AnsiPos
;
;
; ■ Functions used :
;
; 1 -
; 1 *
; 1 /
; 2 +
; 2 -
; 21 ==
; 2 <>
; 2 <
; 2 <=
; 3 >
; 2 >=
; 9 !
; 1 &&
; 3 ||
; 1 Random()
; 1 MinLeft()
;
;------------------------------------------------------------------------------
;
; Analysis flags : A
;
; A - Adjust online time remaining ■ 5
; Program modify the amount of online time remaining, this may
; be a way to bypass time limits
; ■ Search for : ADJTIME
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 0 While/EndWhile
; 9 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------